package com.example.filesynsystem.repo;

import com.example.filesynsystem.pojo.Interupt;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;
import java.util.List;

@Repository
public interface InteruptRepo extends JpaRepository<Interupt,String> {
    List<Interupt> findAllByFileName(String fileName);

    @Transactional
    void deleteInteruptByFilePositionAndFileName(Long filePosition,String fileName);
}
